<%@ page import="coe.pumbaa.User" %>
<g:if test="${user.status == User.BLOCK_USER}">
  <g:remoteLink controller="user" action="unblockUser" id="${user.id}" update="blockSession${user.id}"><input type="image" src="${resource(dir: 'images', file: 'icon_block_user.png')}" title="unblock"></g:remoteLink>
</g:if><g:else>
  <g:remoteLink controller="user" action="blockUser" id="${user.id}" update="blockSession${user.id}"><input type="image" src="${resource(dir: 'images', file: 'icon_user.png')}" title="block"></g:remoteLink>
</g:else>